package com.gylang.commons.util;


import java.util.Collection;
import java.util.Map;

/**
 * @author gylang,
 * date 2020/4/30,
 * @version 1.0
 */
public class CollectionUtils {

    public static boolean isEmpty( Collection<?> collection) {
        return collection == null || collection.isEmpty();
    }

    public static boolean isNotEmpty( Collection<?> collection) {
        return collection != null && !collection.isEmpty();
    }

    public static boolean isEmpty( Map<?, ?> map) {
        return map == null || map.isEmpty();
    }

    public static boolean isNotEmpty(Map<?, ?> map) {
        return map != null && !map.isEmpty();
    }
}
